package com.wuyaya.arch.bom.obj;


public class WuProperty {
    private String name;
    private String columnName;
    private String dataType;
    private int length;
    private int scale;
    private boolean required;

    public WuProperty(String name, String columnName, String dataType, int length, int scale, boolean required) {
        this.name = name;
        this.columnName = columnName;
        this.dataType = dataType;
        this.length = length;
        this.scale = scale;
        this.required = required;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getColumnName() {
        return columnName;
    }

    public void setColumnName(String columnName) {
        this.columnName = columnName;
    }

    public String getDataType() {
        return dataType;
    }

    public void setDataType(String dataType) {
        this.dataType = dataType;
    }

    public int getLength() {
        return length;
    }

    public void setLength(int length) {
        this.length = length;
    }

    public int getScale() {
        return scale;
    }

    public void setScale(int scale) {
        this.scale = scale;
    }

    public boolean isRequired() {
        return required;
    }

    public void setRequired(boolean required) {
        this.required = required;
    }

    @Override
    public String toString() {
        return "{\"name\":\"" + name + "\",\"columnName\":\"" + columnName + "\",\"dataType\":\"" + dataType + "\",\"length\":" + length + ",\"scale\":" + scale + ",\"required\":" + required + "}";
    }
}